﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DataInfo;

public partial class Org_frmO_JointCompList : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        ((Org_MasterPage)this.Master).changeTitle("送出し機関一覧");
        ((Org_MasterPage)this.Master).HideLiArea("frmO_JointCompList");
        //AppCode_Common.ShowEmtyGrid<年数回の賞与>(grv_human, 5, "データーがあります。", "");
        grv_human.DataSource = myTable();
        grv_human.DataBind();
    }
    public DataTable myTable()
    {
        DataTable dt = new DataTable();
        DataColumn col;
        DataRow row;

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "送出し機関名";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "電話番号";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "FAX";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "住所";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "担当者";
        dt.Columns.Add(col);        


        row = dt.NewRow();
        row["送出し機関名"] = "CICS";
        row["電話番号"] = "08-12345678";
        row["FAX"] = "08-9876543";
        row["住所"] = "abcdefghik";
        row["担当者"] = "Nguyen Duc Nam";
       
        dt.Rows.Add(row);

        for (int i = 0; i <= 9; i++)
        {
            row = dt.NewRow();
            row["送出し機関名"] = "&nbsp;";
            row["電話番号"] = " ";
            row["FAX"] = " ";
            row["住所"] = " ";
            row["担当者"] = " ";           
            dt.Rows.Add(row);
        }

        return dt;
    }
}
